function login() {
	 var username = $("#username").val();
	 var pwd = $("#pwd").val();
	 $.ajax({
		 url:path+'/login',
		 type:'post',
		 data:{'username':username,'pwd':pwd},
		 dataType:'json',
		 success:function(result){
			if(result.success){
				window.location.href = path + '/'
			}else{
				layer.msg(result.msg)
			}
		 },
		 error:function(){
			 alert('登录失败')
		 }
	 })
	 
}